
# 写一个矩形类rect,
# 矩形有长和宽
# 并且可以求面积,求周长

class Rect():
    def __init__(self,long,width):
        self.long = long
        self.width = width

    def area(self):
        print(self.long*self.width)

    def perimeter(self):
        print((self.long+self.width)*2)



